package com.firmiana.jt809.common;

import lombok.Getter;

/**
 * 主链路登录应答消息体结果
 *
 * @author hucl
 * @date 2020/8/25 19:29
 */
@Getter
public enum MainResponseEnum {
    SUCCESS(0x00, "成功"),
    IP_ADDRESS_ERROR(0x01, "IP地址不正确"),
    PLATFORM_NOT_EXIST(0x02, "平台加入码不正确"),
    USER_NOT_REGISTER(0x03, "用户不存在"),
    PWD_ERROR(0x04, "密码不正确"),
    RESOURCE_NOT_ENOUGH(0x05, "资源紧张，稍后再连接"),
    OTHER(0x06, "其他"),
    ;

    private int code;
    private String desc;

    MainResponseEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
